﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using Geely.Core.Reflection;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace BeiDream.Web.Api.Dependency
{
    //public class ApiControllersInstaller : IWindsorInstaller
    //{
    //    public void Install(IWindsorContainer container, IConfigurationStore store)
    //    {
    //        List<Assembly> assemblies = WebAssemblyFinder.Instance.GetAllAssemblies();
    //        var v1 = Classes.FromAssemblyInThisApplication();
    //        var v2 = v1.BasedOn<ApiController>();
    //        container.Register(Classes.FromAssemblyNamed("Com.Geely.RecS.Web")
    //            .BasedOn<ApiController>().LifestylePerWebRequest());
    //    }
    //}
}
